package assist.datastore.parser;

import java.io.File;
import java.io.IOException;

import assist.domain.model.Player;

public class NHLPlayersCSVParser extends NHLCSVParser<Player>
{

    private static final long serialVersionUID = 1L;

    public NHLPlayersCSVParser(final File csvFile, Integer startIndex) throws IOException
    {
       super(csvFile, startIndex);
    }

    @Override
    protected Player parseObject(String[] tokens)
    {
        Player player = new Player();
        player.setPlayerId(new Long(tokens[0]));
        player.setName(tokens[1]);
        return player;
    }
}
